/**
Date: 2025-08-13
Copyright (c) 2025 Industrial Software Feature Database
*/
import request from '@/utils/request';
// 左侧树
export function getFastenerTree(data) {
  return request({
    url: `/fastener/model/allowable/tree`,
    method: 'post',
    data: data
  });
}

// 许用值表格
export function getFastenerAllowable(data) {
  return request({
    url: '/fastener/info/allowable/list',
    method: 'post',
    data: data
  });
}

// 获取排号信息
export function getFastenerNumber(data) {
  return request({
    url: '/fastener/allowable/list',
    method: 'post',
    data: data
  });
}

// 获取排号列表
export function getFastenerNumberList(data) {
  return request({
    url: '/fastener/info/original/list',
    method: 'post',
    data: data
  });
}

// 导入
export function importData(data) {
  return request({
    url: '/fastener/allowable/upload/excel',
    method: 'post',
    data: data
  });
}

// 模板下载
export function downloadTemplate(params) {
  return request({
    url: '/fastener/info/original/template',
    method: 'get',
    params,
    responseType: 'blob'
  });
}

// 导出
export function exportData(data) {
  return request({
    url: '/fastener/info/original/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  });
}
